@echo off
::设置变量的值 
for /F %%i in ('jps ^| grep xianhe-1.0-SNAPSHOT.jar ^| awk '{print $1}'') do ( set commitid=%%i)
echo commitid=%commitid%
::重新启动
if "%commitid%" == "" (D:/ProDataAccess/ya/xianheJar/xianherun.sh) else (
taskkill /F /PID "%commitid%"
D:/ProDataAccess/ya/xianheJar/xianherun.sh)
